//
// Created by 沈航烨 on 2024/10/31.
//

#ifndef FFMPLAYER_H
#define FFMPLAYER_H
#include <VideoDecoder.h>


class FFmplayer {
public:
    FFmplayer(){};
    virtual ~FFmplayer(){};

    virtual void Init(char *url, int renderType);
    virtual void UnInit();

    virtual void Play();
    virtual void Pause();
    virtual void Stop();
    virtual void SeekToPosition(float position);
    virtual long GetMediaParams(int paramType);

private:



    static void PostMessage(void *context, int msgType, float msgCode);

    VideoDecoder *m_VideoDecoder = nullptr;
  //  AudioDecoder *m_AudioDecoder = nullptr;

    VideoRender *m_VideoRender = nullptr;
    //AudioRender *m_AudioRender = nullptr;
};



#endif //FFMPLAYER_H
